package com.onlyone;

import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;

/**
 * @author onlyone
 */
@Configuration
public class CustomerCache {

    private Map<String, String> cache = new HashMap<>();

    public boolean set(String key, String value) {
        cache.put(key, value);
        return true;
    }

    public String get(String key) {
        return cache.get(key);
    }
}
